<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <title>文章管理</title>
    <css file="__STATIC__/hdjs/hdui.css"/>
    <css file="__STATIC__/bootstrap/css/bootstrap.min.css"/>
</head>
<body>
<div class="wrap">
    <table class="table2">
        <thead>
        <tr>
            <td width="50">id</td>
            <td>文章标题</td>
            <td width="100">属性</td>
            <td width="180">添加时间</td>
            <td width="180">修改时间</td>
            <td width="100">所属分类</td>
            <td width="50">作者</td>
            <td width="150">操作</td>
        </tr>
        </thead>
        <tbody>
            <foreach from="$data" value="$v" key="$k">
                <tr>
                    <td width="50">{$v.aid}</td>
                    <td>
                        <a href="" target="_blank">{$v.title}</a>
                        
                    </td>
                    <td width="100">{$v.attr}</td>
                    <td width="180">{$v.sendtime|date:'Y-m-d H:i:s',@@}</td>
                    <td width="180">{$v.updatetime}</td>
                    <td width="100">
                        <a href="{|U:'index',array('cid'=>$v['cid'])}">{$v.cname}</a>
                    </td>
                    <td width="50">{$v.author}</td>
                    <td width="150">
                        <a href="{|U:'Article/Undo',array('aid'=>$v['aid'])}" class="btn btn-primary btn-xs">还原</a>
                        <a href="javascript:;" class="btn btn-danger btn-xs" onclick="if(confirm('确定删除吗？')) location.href='{|U:'Article/del_data',array('aid'=>$v['aid'])}'">彻底删除</a>
                    </td>
                </tr>
            </foreach>
            
        </tbody>
    </table>
    <!-- <div class="page_hdjob">
        {$page}
    </div> -->
    <div class="page_cms">
        {$page}
    </div>
</div>

</body>
</html>


